// 获取banner
const getBanner = '/get_banner'
// 首页分类
const getCategoryIndex = '/get_category?type=1'
// 分类页数据
const getCategory = '/get_category?type=2'
// 获取新品
const getNewGoods = '/get_new_goods'
// 获取热门商品
const getHotGoods = '/get_hot_goods'
//获取推荐商品
const recommendGoods = '/get_recommend_goods'
// 猜你喜欢
const getLikeGoodsUrl = '/index/get_like_goods'
// 获取分类商品列表
const getCategoryList = '/productList'
//获取商品详情页
const productDetail = '/product_detail/'
//登陆
const getLogin = '/login'
//获取验证码
const sendSms = '/send_sms'
// 获取用户信息
const userInfo = '/user/user_info'
// 添加购物车
const addToCartUrl = '/cart/addCart'
// 购物车列表
const getCartListUrl = '/cart/getCart'
// 修改购物车数量
const changeCartGoodsNumUrl = '/cart/editCart/'
// 批量删除购物车商品
const deleteCartGoodsUrl = '/cart/removeCart'
// 获取所有地址
const getAllAddressUrl = '/get_area'
// 获取用户地址
const getUserReceivingAddressUrl = '/address/get_address'
// 创建或编辑地址
const editUserReceivingAddressUrl = '/address/set_address'
// 删除地址
const deleteUserReceivingAddressUrl = '/address/del_address'
// 设置默认地址
const setDefaultUserReceivingAddressUrl ='/address/set_default'
// 小程序获取手机号
const weChatGetUserPhoneUrl = '/get_mini_phone'
// 小程序微信登录
const weChatUserLoginUrl = '/wechat_mini_login'
// 直接购买订单创建页接口
const createOrderAddViewUrl = '/order/orderAddView'
// 直接购买创建订单
const createOrderUrl = '/order/addOrder'
// 购物车下单页面
const createOrderAddViewByCartUrl = '/order/cartOrderAddView'
// 购物车下单
const createOrderByCartUrl = '/order/cartOrderAdd'
// 小程序统一下单（预下单）
const weChatPayUrl = '/pay/wechat_unify_order'
// 订单列表
const searchOrderListUrl = '/order/orderList'
// 删除订单
const deleteOrderByIdUrl  = '/order/deleteOrder/'
// uni验证是否登录
const unionidLoginUrl = '/check_unionid'
// APP微信登录
const weChatAppLoginUrl = '/wechat_app_login'
// 小程序获取openid和unionid
const getWeChatOpenidUrl = '/get_wechat_openid'
// 商品搜索
const productSearchUrl = '/productSearch'
//退出登陆
const logout = '/logout'
// 订单物流查看
const getOrderLogisticsUrl ='/order/getLogistics'
// 确认收货
const receivingOrderUrl = '/order/receiving/'
// 订单详情
const getOrderDetailUrl = '/order/orderDetail/'
// 附件上传
const fileUploadUrl = '/upload'
// 修改用户信息
const modifyUserInfoUrl = '/user/currentUser'
// 获取配置
const getConfigUrl = '/getConfig'
// 首页秒杀商品
const getSeckillIndexUrl =  '/getSeckillIndex'
// 获取秒杀场次
const getActivitySeckillUrl = '/activitySeckill'
// 活动场次获取秒杀商品列表接口
const getActivitySeckillGoodsListUrl = '/productSeckill/'
// 秒杀商品详情
const getSeckillGoodsDetail = '/seckillDetail'
// 秒杀下单页面
const createOrderAddViewBySeckillUrl = '/order/seckillOrderView'
// 生成秒杀订单
const createOrderBySeckillUrl = '/order/seckillOrder'


export {
  getCategoryIndex,
  getCategory,
  recommendGoods,
  getBanner,
  getNewGoods,
  getLogin,
  sendSms,
  getHotGoods,
  productDetail,
  userInfo,
  getCategoryList,
  addToCartUrl,
  getCartListUrl,
  changeCartGoodsNumUrl,
  deleteCartGoodsUrl,
  getLikeGoodsUrl,
  getAllAddressUrl,
  getUserReceivingAddressUrl,
  editUserReceivingAddressUrl,
  deleteUserReceivingAddressUrl,
  setDefaultUserReceivingAddressUrl,
  weChatGetUserPhoneUrl,
  createOrderAddViewUrl,
  createOrderUrl,
  searchOrderListUrl,
  createOrderAddViewByCartUrl,
  createOrderByCartUrl,
  weChatPayUrl,
  weChatUserLoginUrl,
  deleteOrderByIdUrl,
  unionidLoginUrl,
  weChatAppLoginUrl,
  getWeChatOpenidUrl,
  productSearchUrl,
  getOrderLogisticsUrl,
  receivingOrderUrl,
  getOrderDetailUrl,
  fileUploadUrl,
  modifyUserInfoUrl,
  getConfigUrl,
  getSeckillIndexUrl,
  getActivitySeckillUrl,
  getActivitySeckillGoodsListUrl,
  getSeckillGoodsDetail,
  createOrderAddViewBySeckillUrl,
  createOrderBySeckillUrl
}
